Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deserialization #29

Merged
merged 8 commits into from
Jan 2, 2024
Merged

Deserialization #29

merged 8 commits into from
Jan 2, 2024

Conversation

neotheprogramist
Copy link
Contributor

@neotheprogramist neotheprogramist commented Dec 30, 2023

Whole deserialization works.
You can simply follow the instructions in Runner Readme and copy the whole file from Python parser without any modifications to the runner/resources/parsein.txt.

  • I've destructed FriConfig - inner_layers into Array<felt252> but it is array of (felt252, VectorCommitmentConfig). To support that we need the parser to somehow encode underlying objects structure, because it needs to know how many elements are there in the array - to know that it needs to know the size of the structs inside array.

  • I've also destructed FriWitness - layers into Array<felt252> (that was the case where we had nested arrays) for simplicity, but we can try to deserialize it using Serde or enhance parser further to support objects in arrays.

@neotheprogramist neotheprogramist self-assigned this Dec 30, 2023
@neotheprogramist neotheprogramist marked this pull request as ready for review December 31, 2023 10:26
@tiagofneto tiagofneto linked an issue Jan 2, 2024 that may be closed by this pull request
@neotheprogramist neotheprogramist merged commit 91a80bb into main Jan 2, 2024
2 checks passed
@neotheprogramist neotheprogramist deleted the deserialization branch January 2, 2024 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deserialization
2 participants